import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
// import {HashRouter as Router,Route,Redirect,Switch} from "react-router-dom"
// import {mainRoute} from "./routes"

ReactDOM.render(
  <App></App>
  // App
  // <Router>
  //   <Switch>
  //     <Route path="/admin" component={App}/>
  //     {
  //       mainRoute.map(route=>{
  //         return <Route path={route.pathname} component={route.component}/>
  //       })
  //     }
  //     <Redirect to="/admin" from="/" exact/>
  //     <Redirect to="/404" />
  //   </Switch>
  // </Router>
  ,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
